package net.csdn.business.common.domain.request.discuss;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName SendDiscussCommentAuditDTO
 * @Description 讨论评论审核对象DTO
 * @Author zhangyl
 * @Date 2023/7/18 10:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SendDiscussCategoryAuditDTO implements Serializable
{

    private static final long serialVersionUID = 1L;
    /** id */
    @NotBlank(message = "id不能为空")
    private String id;
    /** discuss主键 */
    @NotBlank(message = "discussId不能为空")
    private String categoryName;
    /** 内容 */
    @NotBlank(message = "content不能为空")
    private String categoryDesc;
    /** 创建人 */
    @NotBlank(message = "content不能为空")
    private String createdBy;

    @NotNull(message = "createdDate不能为空")
    private Date createdDate;

    /**
     * action:1:新增；2:更新;3:删除
     */
    @NotNull(message = "action不能为空")
    @Range(min = 1, max = 3, message = "action不合法")
    private Integer action;

    @NotBlank(message = "sourceId不能为空")
    private String sourceId;
    @NotNull(message = "sourceType不能为空")
    @Range(min = 1, max = 2, message = "sourceType不合法")
    private Integer sourceType;
}
